# 抽取所有评论
import pandas as pd

inputfile = r"..\data\microwave_4removed.tsv" # 剔除重复后的数据
outputfile = r"..\data\microwave_5reviews.txt" # 评论文本

m_data = pd.read_csv(inputfile, sep='\t', encoding='utf-8')

m_data = m_data['review_body'] # 选取评论这一列
m_data.to_csv(outputfile, sep='\t', index=False, header=False, encoding='utf-8')
